8fd071
@@ -191,9 +191,6 @@
public class SimpleCxfRsBinding extends DefaultCxfRsBinding {
      * <p />
      * The {@link DefaultCxfRsBinding} doesn't filter the response headers according to the {@link HeaderFilterStrategy}, 
      * so we handle this task in this binding.
-     * @param headers
-     * @param camelExchange
-     * @return
      */
     protected Map<String, String> filterCamelHeadersForResponseHeaders(Map<String, Object> headers,
                                                                      org.apache.camel.Exchange camelExchange) {
@@ -202,6 +199,11 @@
public class SimpleCxfRsBinding extends DefaultCxfRsBinding {
             if (getHeaderFilterStrategy().applyFilterToCamelHeaders(entry.getKey(), entry.getValue(), camelExchange)) {
                 continue;
             }
+            // skip content-length as the simple binding with Response will set correct content-length based
+            // on the entity set as the Response
+            if ("content-length".equalsIgnoreCase(entry.getKey())) {
+                continue;
+            }
             answer.put(entry.getKey(), entry.getValue().toString());
         }
         return answer;
